﻿<UserControl x:Class="MissedMemo.MeatAndCheeseDisc.OrderEntry.viewAddEditDessert"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="auto" Height="auto"
    MinWidth="300" MinHeight="300">

    <UserControl.Resources>
        <ResourceDictionary>

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="resAddEditStyles.xaml" />
            </ResourceDictionary.MergedDictionaries>

        </ResourceDictionary>
    </UserControl.Resources>


    <Grid Style="{StaticResource AddEditViewContentStyle }" >

        <Grid.RowDefinitions>
            <RowDefinition Height="24" />
            <RowDefinition Height="32" />
            <RowDefinition Height="32" />
            <RowDefinition Height="32" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>


        <Image Grid.Row="0" Grid.RowSpan="4" Grid.Column="0" Source="Resources\Dessert.png" Height="120" />
        
        <TextBlock Grid.Row="1" Grid.Column="1" Text="Dessert Type:" VerticalAlignment="Center" Margin="24,0,5,0" />
        <ComboBox Grid.Row="1"  Grid.Column="2" Name="comboDessertType" Width="150" SelectionChanged="comboDessertTypes_SelectionChanged"
                  VerticalAlignment="Center" HorizontalAlignment="Left" SelectedItem="{Binding Type}"  />
        
        <TextBlock Grid.Row="2" Grid.Column="1" Text="Dessert Size:" VerticalAlignment="Center" Margin="24,0,5,0"/>
        <ComboBox  Grid.Row="2" Grid.Column="2" Name="comboDessertSize" Width="150"
                   VerticalAlignment="Center" HorizontalAlignment="Left" SelectedItem="{Binding Size}" />
        
    </Grid>
    
</UserControl>
